const http = require('http')
const url = require('url')

const app = http.createServer((req, res) => {
  let cb = url.parse(req.url, true)['query']['cb']
  res.end(`${cb}('hello')`)
})

app.listen(8080, () => console.log('localhost:8080'))
